package pin.db.schema.base;
import pin.db.schema.*;
import java.util.Hashtable;
import java.sql.Timestamp;
import java.sql.Connection;
import java.sql.ResultSet;
import java.util.Collection;
import java.sql.SQLException;
import java.util.Vector;
public class ChatMemberBase{
	boolean[] modified=new boolean[4];
	public void resetModified(){
		for(boolean b:modified){
			b=false;
		}
	}
	private final Hashtable<String,Object> data=new Hashtable<String,Object>();
	public final void set(String columnNameDb, Object value){
		data.put(columnNameDb,value);
	}
	public final Object get(String columnNameDb){
		return data.get(columnNameDb);
	}
	public ChatMemberBase(){}
	public ChatMemberBase(java.lang.Long chatroomId,java.lang.Long userId,java.lang.String nicename,java.lang.Long type){
		setChatroomId(chatroomId);
		setUserId(userId);
		setNicename(nicename);
		setType(type);
	}
	public void setChatroomId(java.lang.Long chatroomId){
		if(chatroomId!=null) {
			set("chatroomId",chatroomId);
			this.modified[0] =true;
		}
	}
	public java.lang.Long getChatroomId(){
		return (java.lang.Long)get("chatroomId");
	}
	public void setUserId(java.lang.Long userId){
		if(userId!=null) {
			set("userId",userId);
			this.modified[1] =true;
		}
	}
	public java.lang.Long getUserId(){
		return (java.lang.Long)get("userId");
	}
	public void setNicename(java.lang.String nicename){
		if(nicename!=null) {
			set("nicename",nicename);
			this.modified[2] =true;
		}
	}
	public java.lang.String getNicename(){
		return (java.lang.String)get("nicename");
	}
	public void setType(java.lang.Long type){
		if(type!=null) {
			set("type",type);
			this.modified[3] =true;
		}
	}
	public java.lang.Long getType(){
		return (java.lang.Long)get("type");
	}
}
